<template>
  <div class="navbar">
    <div class="logo">
      <img src="../../assets/bilibili.png" alt="" @click="$router.push('/')">
    </div>
    <div>
      <p>
        <van-icon name="search" class="ipt-icon" />
        请输入搜索的内容
      </p>
    </div>
    <div>
      <img src="../../assets/head.png" alt="" @click="$router.push('/userinfo')">
      <p>下载APP</p>
    </div>
  </div>
</template>

<script>
  export default {
    methods:{
    }
  }
</script>

<style lang="less" scoped>
.navbar{
  height: 12.5vw;
  background-color: #fff;
  display: flex;
  .logo{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    img{
      width: 80%;
    }
  }
  div:nth-child(2){
    flex: 1;
    display: flex;
    align-items: center;
    p{
      font-size: 12px;
      line-height: 26px;
      color: #aaa;
      height: 26px;
      position: relative;
      background-color: #f4f4f4;
      padding-left: 25px;
      width: 90%;
      border-radius: 10px;
      .ipt-icon{
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translate(0,-50%);
      }
    }
  }
  div:nth-child(3){
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    img{
      width: 30px;
      height: 30px;
    }
    p{
      padding:5px 10px;
      margin: 0 8px;
      background-color: #fb7299;
      color: #fff;
      border-radius: 3px;
      font-size: 13px;

    }
  }
}
</style>
